class Solution:
    # @param n, an integer
    # @return an integer
    def reverseBits(self, n):
        num = 0
        for i in range(32):
           num += ((n >> i) & 1) * pow(2, 31 - i)
        return num

data = Solution()
n = 4294967293
print(data.reverseBits(n))